package com.tmall.pojo;

import java.io.Serializable;

/**
 * (订单项目)实体类
 *
 * @author 吕冰星
 * @since 2020-11-26 21:50:05
 */
public class OrderItem implements Serializable {
    private static final long serialVersionUID = -31639293864053364L;

    private Integer id;

    private Integer pid;

    private Integer oid;

    private Integer uid;

    private Integer number;

    private Product product;

    private Order order;

    private User user;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "id=" + id +
                ", pid=" + pid +
                ", oid=" + oid +
                ", uid=" + uid +
                ", number=" + number +
                ", product=" + product +
                ", order=" + order +
                ", user=" + user +
                '}';
    }
}